package com.uubx.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * (Permission)实体类
 *
 * @author makejava
 * @since 2020-12-29 17:39:18
 */
@ApiModel(description = "Permission数据")
public class Permission implements Serializable {
    private static final long serialVersionUID = 335922639955343664L;
    @Id
    private Integer id;
    /**
     * 权限名称
     */        @ApiModelProperty("权限名称")
    private String name;
    /**
     * 权限描述
     */        @ApiModelProperty("权限描述")
    private String description;
    /**
     * 权限访问路径
     */        @ApiModelProperty("权限访问路径")
    private String url;
    /**
     * 父级权限id
     */        @ApiModelProperty("父级权限id")
    private Integer parentId;
    /**
     * COMMENT '是否是菜单 1 是菜单 0 不是菜单
     */        @ApiModelProperty("COMMENT '是否是菜单 1 是菜单 0 不是菜单")
    private Integer isMenu;
    /**
     * 权限的等级 1 2 3 4....
     */        @ApiModelProperty("权限的等级 1 2 3 4....")
    private Integer permissionLevel;
    /**
     * 状态：1有效；2删除
     */        @ApiModelProperty("状态：1有效；2删除")
    private Integer status;
    private Date createTime;
    private Date updateTime;


    public Permission() {

    }

    public Permission(Integer id, String name, String url, Integer parentId, Integer isMenu, Integer permissionLevel, Integer status) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.parentId = parentId;
        this.isMenu = isMenu;
        this.permissionLevel = permissionLevel;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getIsMenu() {
        return isMenu;
    }

    public void setIsMenu(Integer isMenu) {
        this.isMenu = isMenu;
    }

    public Integer getPermissionLevel() {
        return permissionLevel;
    }

    public void setPermissionLevel(Integer permissionLevel) {
        this.permissionLevel = permissionLevel;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", parentId=" + parentId +
                ", isMenu=" + isMenu +
                ", permissionLevel=" + permissionLevel +
                ", status=" + status +
                '}';
    }
}
